#include"heap.h"

void test01()
{
	int a[] = {10,20,30,40,50,60,70,80};
	HeapSort(&a, sizeof(a)/sizeof(int));
	for (int i = 0; i < 8; i++)
	{
		printf("%d ", a[i]);
	}
}
void test02()
{
	int a[] = { 10,20,30,40,50,60,70,80 };
	HP hp;
	HeapCreate(&hp, a, sizeof(a)/sizeof(int));
	HeapPrintf(&hp);
	HeapDestory(&hp);
}
int main()
{
	
	//HP hp;
	//HeapInit(&hp);
	//for (int i=0;i<sizeof(a)/sizeof(a[0]);i++)
	//{
	//	HeapPush(&hp, a[i]);
	//}
	//HeapPrintf(&hp);
	//return 0;


	
	//test01();
	test02();
}